package com.ship.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.contract.bean.ConAllLabel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author tangshixuan
 * @date 2023-9-1
 */
public interface ConAllLabelMapper extends BaseMapper<ConAllLabel> {
    /**
     * 根据标签ID修改合同关联标签的值
     * @param id
     * @param labelValue
     */
    @Update("update con_all_label set label_value = #{labelValue} where label_id = #{id}")
    void updateByLabelId(@Param(value = "id") Long id, @Param(value = "labelValue") String labelValue);
}
